package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.api.dto.PayOrderDTO;
import com.hmall.api.fallback.PayFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "hm-pay",configuration = DefaultFeignConfig.class ,fallbackFactory = PayFallBackFactory.class)
public interface PayClient {
    @GetMapping("/pay-orders/queryByOrderId/{orderId}")
    PayOrderDTO queryByOrderId(@PathVariable("orderId") Long orderId);
}
